﻿<Window x:Class="AutoClicker.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AutoClicker" Height="165" Width="470" MinWidth="470" MinHeight="165" Icon="icon.ico">
    <Grid Margin="4">
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition MinWidth="160" Width="160"/>
            <ColumnDefinition Width="8"/>
            <ColumnDefinition MinWidth="70" MaxWidth="100"/>
            <ColumnDefinition Width="8"/>
            <ColumnDefinition MinWidth="70" MaxWidth="140"/>
            <ColumnDefinition Width="8"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="8"/>
            <ColumnDefinition Width="18"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="24"/>
            <RowDefinition Height="8"/>
            <RowDefinition Height="24"/>
            <RowDefinition Height="8"/>
            <RowDefinition Height="24"/>
            <RowDefinition />
            <RowDefinition Height="24"/>
        </Grid.RowDefinitions>
        <Label Content="Интервал автоклика"/>
        <Slider Grid.Column="2" x:Name="TimeSlider" Value="1000" Grid.ColumnSpan="3" Minimum="0.00001" Maximum="5000" ValueChanged="TimeSlider_ValueChanged"/>
        <TextBox Grid.Column="6" x:Name="TimeTextBox" Text="1 сек" KeyDown="TimeTextBox_KeyDown"/>
        <Button Grid.Column="8" Grid.Row="0" x:Name="TimeHelpButton" Content="?" ToolTip="Подсказка" Click="TimeHelpButton_Click"/>
        <Label Content="Клавиша или сочетание" Grid.Row="2"/>
        <ComboBox x:Name="KeyDropBox" Grid.Column="2" Grid.ColumnSpan="3" Grid.Row="2" SelectionChanged="KeyDropBox_SelectionChanged" />
        <TextBox x:Name="KeyTextBox" Grid.Column="6" Grid.Row="2" KeyDown="KeyTextBox_KeyDown" />
        <Button Grid.Column="8" Grid.Row="2" x:Name="KeyHelpButton" Content="?" ToolTip="Подсказка" Click="KeyHelpButton_Click"/>
        <Label Content="Горячая клавиша" Grid.Row="4"/>
        <ComboBox x:Name="HotKeyPrefixBox" Grid.Column="2" Grid.Row="4" SelectionChanged="HotKeyPrefixBox_SelectionChanged"/>
        <ComboBox x:Name="HotKeyDropBox" Grid.Column="4" Grid.Row="4" SelectionChanged="HotKeyDropBox_SelectionChanged" />
        <TextBox x:Name="HotKeyTextBox" IsEnabled="False" Grid.Column="6" Grid.Row="4"/>
        <Button Content="Сбросить настройки" x:Name="CleanSettingsButton" Grid.Row="6" Click="CleanSettingsButton_Click"/>
        <Button Content="Применить" x:Name="ApplyButton" Grid.Row="6" Grid.Column="6" IsEnabled="False" Click="ApplyButton_Click"/>
        <Button Content="Старт" x:Name="StartButton" Grid.Row="6" Grid.Column="2" Click="StartButton_Click" />
        <Button Content="Стоп" x:Name="StopButton" Grid.Row="6" Grid.Column="4" Click="StopButton_Click" />
    </Grid>
</Window>
